/**
 * 导出xlsx数据
 * @param {*} sheetData 数据内容第一行是表头
 * @param {*} fileName  文件名
 */
export const DownLoadXLSX = (sheetData = [], fileName = "导出数据") => {
  const wb = XLSX.utils.book_new();
  XLSX.utils.book_append_sheet(
    wb,
    XLSX.utils.aoa_to_sheet(sheetData),
    "Sheet1"
  );
  XLSX.writeFile(wb, `${fileName}.xlsx`);
};
